﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>不带滚动条的select</title>

</head>
<body>
<select size="2"  style="width:150px"  name="mysel" style="overflow:hidden" multiple>
    <option>aaa</option>
    <option>bbb</option>
    <option>ccc</option>
    <option>ddd</option>
    <option>eee</option>
    <option>fff</option>
</select>

<script type="text/javascript" language="JavaScript">
    document.all.mysel.size=document.all.mysel.options.length;   //根据列表框内容改变列表框的高度

</script>

</body>
</html>